<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    Document   : ListarVoos
    Created on : 02/08/2012, 16:20:27
    Author     : Ricardo Luíz
-->
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view><webuijsf:staticText id="staticText1" text="Lista de vôos"/>
 <webuijsf:button actionExpression="#{ListarVoos.btnConfirmar_action}" id="btnConfirmar"text="Fechar pedido"/>
 <webuijsf:button actionExpression="#{ListarVoos.btnVoltar_action}"id="btnVoltar" immediate="true" text="Voltar"/>

 
<h:dataTable border="1" id="dataTableVoosIda" value="#{ListarVoos.voosIda}" var="linha"> 
 
 <h:column id="colunaIdaSelecao">
 <f:facet name="header">
 <h:outputText id="outputText11" value="#"/>
 </f:facet>
 <webuijsf:radioButton id="radioButtonIdaSelecao" name="grupoIda"selected="#{linha.selecionado}"/>
</h:column>
 <h:column id="colunaIdaID">
 <h:outputText id="outputText1" value="#{linha.voo.id}"/>
 <f:facet name="header">
 <h:outputText id="outputText2" value="ID"/>
 </f:facet>
 </h:column>
 <h:column id="colunaIdaOrigem">
 <h:outputText id="outputText3" value="#{linha.voo.origem.nome}"/>
 <f:facet name="header">
 <h:outputText id="outputText4" value="Origem"/>
 </f:facet>
 </h:column>
 <h:column id="colunaIdaDestino">
 <h:outputText id="outputText5" value="#{linha.voo.destino.nome}"/>
 <f:facet name="header">
 <h:outputText id="outputText6" value="Destino"/>
 </f:facet>
 </h:column>
 <h:column id="colunaIdaDia">
 <h:outputText converter="#{ListarVoos.dateTimeConverter1}"
 id="outputText7" value="#{linha.voo.dia}"/>
 <f:facet name="header">
 <h:outputText id="outputText8" value="Dia"/>
 </f:facet>
 </h:column>
 <h:column id="colunaIdaHora">
 <h:outputText converter="#{ListarVoos.dateTimeConverter2}"
 id="outputText9" value="#{linha.voo.hora}"/>
 <f:facet name="header">
 <h:outputText id="outputText10" value="Hora"/>
 </f:facet>
 </h:column>
 <h:column id="colunaIdaVagas">
 <h:outputText id="outputText23" value="#{linha.voo.vagas}"/>
 <f:facet name="header">
 <h:outputText id="outputText24" value="Vagas"/>
 </f:facet>
 </h:column>
</h:dataTable>
 <h:dataTable border="1" id="dataTableVoosVolta" rendered="#{ListarVoos.voltaVisivel}"value="#{ListarVoos.voosVolta}" var="linha" width="552">
 <h:column id="colunaVoltaSelecao">
 <f:facet name="header">
 <h:outputText id="outputText12" value="#"/>
 </f:facet>
 <webuijsf:radioButton id="radioButtonVoltaSelecao" name="grupoVolta"selected="#{linha.selecionado}"/>
 </h:column>
 <h:column id="colunaVoltaID">
 <h:outputText id="outputText13" value="#{linha.voo.id}"/>
 <f:facet name="header">
 <h:outputText id="outputText14" value="ID"/>
 </f:facet>
 </h:column>
 <h:column id="colunaVoltaOrigem">
 <h:outputText id="outputText15" value="#{linha.voo.origem.nome}"/>
 <f:facet name="header">
 <h:outputText id="outputText16" value="Origem"/>
 </f:facet>
 </h:column>
 <h:column id="colunaVoltaDestino">
 <h:outputText id="outputText17" value="#{linha.voo.destino.nome}"/>
 <f:facet name="header">
 <h:outputText id="outputText18" value="Destino"/>
 </f:facet>
 </h:column>
 <h:column id="colunaVoltaDia">
 <h:outputText converter="#{ListarVoos.dateTimeConverter1}"
 id="outputText19" value="#{linha.voo.dia}"/>
 <f:facet name="header">
 <h:outputText id="outputText20" value="Dia"/>
 </f:facet>
 </h:column>
 <h:column id="colunaVoltaHora">
 <h:outputText converter="#{ListarVoos.dateTimeConverter2}"
 id="outputText21" value="#{linha.voo.hora}"/>
<f:facet name="header">
 <h:outputText id="outputText22" value="Hora"/>
 </f:facet>
 </h:column>
 <h:column id="colunaVoltaVagas">
 <h:outputText id="outputText25" value="#{linha.voo.vagas}"/>
 <f:facet name="header">
 <h:outputText id="outputText26" value="Vagas"/>
 </f:facet>
 </h:column>
 </h:dataTable>
 <webuijsf:staticText id="staticText2" styleClass="titulo2" text="Ida"/>
 <webuijsf:staticText id="staticText3" rendered="#{ListarVoos.voltaVisivel}"text="Volta"/>
        <webuijsf:page id="page1">
            <webuijsf:html id="html1">
                <webuijsf:head id="head1">
                    <webuijsf:link id="link1" url="/resources/stylesheet.css"/>
                </webuijsf:head>
                <webuijsf:body id="body1" style="-rave-layout: grid">
                    <webuijsf:form id="form1">
                        <webuijsf:button actionExpression="#{ListarVoos.btnConfirmar_action}" id="btnConfirmar"
                            style="position: absolute; left: 72px; top: 48px" text="Confirmar"/>
                        <webuijsf:button actionExpression="#{ListarVoos.btnVoltar_action}" id="btnVoltar" style="position: absolute; left: 96px; top: 120px" text="Voltar"/>
                    </webuijsf:form>
                </webuijsf:body>
            </webuijsf:html>
        </webuijsf:page>
    </f:view>
</jsp:root>
